package day04;

import java.util.ArrayList;
import java.util.Collection;

public class Demo02 {

	public static void main(String[] args) {

		Person[]ary=new Person[3];
		ary[0]=new Person("Tom",25);
		ary[1]=new Person("Jerr",20);
		for(int i=0;i<ary.length;i++){
			System.out.println(ary[i]);
		}
		
		
		
		
		
		Collection<Person> c=new ArrayList<Person>();
			c.add(new Person("Tom",25));	
			c.add(new Person("Jerry",20));	
			System.out.println(c);
		
	}

}


	
